package edu.scau.mis.pos.domain;

import edu.scau.mis.core.domain.BaseEntity;

public class Skus extends BaseEntity {
    private Integer skuId;          // SKU的唯一标识
    private String skuCode;         // SKU编码（可自定义，如TS-RED-M）
    private Integer productSn;      // 关联的产品编号（外键）
    private String size;           // 尺码（如S、M、L）
    private String color;          // 颜色（如“红色”、“黑色”）
    private Integer stockQuantity;  // 当前库存数量
    private Boolean isAvailable;    // 1是0否

    private String skuUrl; //规格图片url

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public Integer getProductSn() {
        return productSn;
    }

    public void setProductSn(Integer productSn) {
        this.productSn = productSn;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(Integer stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

    public Boolean getAvailable() {
        return isAvailable;
    }

    public void setAvailable(Boolean available) {
        isAvailable = available;
    }

    public String getSkuUrl() {
        return skuUrl;
    }

    public void setSkuUrl(String skuUrl) {
        this.skuUrl = skuUrl;
    }

    @Override
    public String toString() {
        return "Skus{" +
                "skuId=" + skuId +
                ", skuCode='" + skuCode + '\'' +
                ", productSn=" + productSn +
                ", size='" + size + '\'' +
                ", color='" + color + '\'' +
                ", stockQuantity=" + stockQuantity +
                ", isAvailable=" + isAvailable +
                ", skuUrl='" + skuUrl + '\'' +
                '}';
    }
}
